<?php
/*
*	created by cbq in 2017.02.08
*	站点相关模型
*/
defined('BASEPATH') OR exit('No direct script access allowed');
class Column_m extends MY_Model {
    public function __construct()
    {
        parent::__construct();
        $this->table='column';
    }
    public function sel($where,$field='*'){
    	$this->com_where($where);
    	$this->db->select($field);
        $query=$this->db->get($this->table);
     	$data=$query->row_array();
        return $data;
    }
    //查询所有
    public function selall($where=array(),$field="*",$order='orderid asc'){
        $this->com_where($where);
        $this->db->select($field);
        $this->db->order_by($order);
        $query=$this->db->get($this->table);
        $data=$query->result_array();
        return $data;
    }
 }